import axios from '../axios'

/*
 * 报单账号管理模块
 */

// 新增
export const save = (data) => {
  return axios({
    url: '/orderNumberInfo/saveOrderInfo',
    method: 'post',
    data
  })
}
// 删除
export const batchDelete = (params) => {
  return axios({
    url: '/orderNumberInfo/deleteOrderInfo',
    method: 'post',
    params
  })
}
//绑定
export const edit = (data) => {
  return axios({
    url: '/orderNumberInfo/userBind',
    method: 'post',
    data
  })
}
//解绑
export const relieve= (params) => {
  return axios({
    url: '/orderNumberInfo/relieveUserBind',
    method: 'post',
    params
  })
}
// 分页查询
export const findPage = (params) => {
  return axios({
    url: '/orderNumberInfo/queryInfoList',
    method: 'get',
    params
  })
}
// 按条件查询
export const search = (params) => {
  return axios({
    url: '/oemInfo/queryInfoById',
    method: 'get',
    params
  })
}

